package com.ant.storage.service;

import com.ant.storage.common.ResultPage;
import com.ant.storage.pojo.InventoryCheck;
import com.ant.storage.common.PageRecv;
import com.ant.storage.common.ResultVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.validation.BindingResult;

import javax.validation.Valid;

public interface IInventoryCheckService extends IService<InventoryCheck>{
    /**
     * 新增编辑验证
     * @param inventoryCheck
     * @param bindingResult
     * @return
     */
    InventoryCheck editVerification(@Valid InventoryCheck inventoryCheck,BindingResult bindingResult);
    /**
     * 盘点单新增(编辑)
     * @param inventoryCheck
     * @return
     */
    ResultVo addInventoryCheckEdit(InventoryCheck inventoryCheck);


    /**
     * 盘点单新增(确认)
     * @param inventoryCheck
     * @return
     */
    ResultVo addInventoryCheckConfirm(InventoryCheck inventoryCheck);

    /**
     * 新增确认验证
     * @param inventoryCheck
     * @param bindingResult
     * @return
     */
    InventoryCheck confirmVerification(@Valid InventoryCheck inventoryCheck, BindingResult bindingResult);

    /**
     * 修改库存盘点(编辑)
     * @param inventoryCheck
     * @return
     */
    ResultVo updateInventoryCheckEdit(InventoryCheck inventoryCheck);

    /**
     * 修改库存盘点(确认)
     * @param inventoryCheck
     * @return
     */
    ResultVo inventoryCheckEditConfirm(InventoryCheck inventoryCheck);

    /**
     * 库存盘点查询
     * @param pageRecv
     * @return
     */
    ResultPage queryInventoryCheck(PageRecv<InventoryCheck> pageRecv);
}
